package com.tax.dto.req;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

@Data
@Api(value="用户修改密码")
public class EditPasswordReq {

	@ApiModelProperty(value="新密码")
	@NotBlank(message="新密码不能为空")
	private String newPassword;
	
	@ApiModelProperty(value="旧密码")
	@NotBlank(message="旧密码不能为空")
	private String oldPassword;
	
	@ApiModelProperty(value="用户id")
	@NotNull(message="用户id不能为空")
	private String userId;
}
